<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/app/include.jsp"%>
	</head>  
<body>
<div class="right_content">
  <ul class="breadcrumb">
        	<li>系统管理<span>/</span></li> 
            <li class="active">机构管理</li>
  </ul>
  <div class="list-wrap">
        <form id="queryForm" name="queryForm" action="${pageContext.request.contextPath}/auth/org/loadOrgList.do" method="post">
            <div class="pull">
	        	<div class="pull-left">
	            	机构名称： <input name="orgName" type="text" style="width: 240px;"  value="${orgName}"  />  
	            </div>
	            <div class="pull-right"> 
					<input type="button" class="btn btn-primary" value="查询" onclick="Page.queryPage();"/>
					<input type="button" class="btn btn-primary" value="重置" onclick="Page.clearForm();"/> 
	            	<input type="button" onclick="addOrg();" class="btn btn-primary" value="创建机构"/>
	            </div>
            </div>
        </form> 
        <div class="table-wrap">
        <table border="0" cellpadding="0" cellspacing="0" class="list"> 
			<thead>
		          <tr> 
		            <th width="5%">序号</th>
		            <th width="15%">机构名称</th>
		            <th width="20%">机构类型</th>  
		            <th width="35%">创建时间</th>   
		            <th width="10%">修改</th> 
		            <th width="10%">删除</th> 
		          </tr> 
		    </thead>
		    <tbody>
				    <c:forEach var="result" items="${page.list}" varStatus="status">
						<tr>
							<td>${status.index + 1 }</td>
							<td>${result.orgname}</td> 
							<td>${result.orgtype}</td>
							<td></td>
							<td>${result.id}</td>
							<td>${result.id}</td> 
						</tr>
					</c:forEach>  
		            <c:if test="${fn:length(page.list) == 0}">
						<tr>
							<td colspan=6 align="center"><font color=red><strong>当前没有机构信息！</strong></font></td>
						</tr>
					</c:if>
			</tbody>
        </table> 
        </div>
  		<!--分页开始-->
				${page.operate }
		<!--/分页结束-->
		</div>
	</div>
</body>
</html>